SET(PROJ_NAME fdn_muxer)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/foundation/media/include)

file(GLOB_RECURSE CPP_SOURCE_FILE "src/*.cpp")
file(GLOB_RECURSE CPP_HEADERS_FILE "src/*.hpp")
file(GLOB_RECURSE C_SOURCE_FILE "src/*.c")
file(GLOB_RECURSE C_HEADERS_FILE "src/*.h")

set(ALL_HDRS ${CPP_HEADERS_FILE} ${C_HEADERS_FILE})
set(ALL_SOURCES ${CPP_SOURCE_FILE} ${C_SOURCE_FILE})

add_library(${PROJ_NAME} STATIC ${ALL_HDRS} ${ALL_SOURCES})

target_link_libraries(${PROJ_NAME} PRIVATE
    avformat 
    avcodec 
    avutil  
    swresample
    opus
)

if(BUILD_TESTS)
    add_subdirectory(test)
endif()
